package com.zhu.library_management_system.util;

import org.springframework.stereotype.Component;

@Component
public class RoleVerify{
    public static Integer verifyRole(String role) {
        if (role.equals("管理员")){
            return 0;
        }
        if (role.equals("学生")){
            return 1;
        }
        if (role.equals("教师")){
            return 2;
        }
        return null;
    }
}
